home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 5 / CD-ROM Today - The Disc (Issue 5)(November 1994).ISO / mac / Mac shareware / Applications / CalConvert 1.2 / CalConvert 1.2 docs next >
Encoding:
Text File  |  1994-09-21  |  5.5 KB  |  103 lines  |  [TEXT/ttxt]

  1. Alessandro Levi Montalcini
  2. C.so Re Umberto 10
  3. 10121 Torino
  4. Italy
  5. e-mail: lmontalcini@pmn.it
  6.  
  7. CalConvert 1.2 documentation - July 1994
  8.  
  9. Ñ Shareware - $5 - cash only
  10. ╫  This utility is distributed as shareware: if you like it please honor the shareware system by sending $5 to the author at the address above. Since cashing international cheques is very expensive, please send cash only (U.S. dollars are best, but any other currency is fine).
  11. ╫  If you work on the Macintosh, there are many things you can send me instead of the money. Here are some suggestions: original software (but don't send any shareware/freeware unless you're the author), books or computer-related magazines (any free issue or subscription is welcome), CD-ROMs, any piece of new or used hardware, or anything else you've created.
  12. ╫  There's still another thing you could do: I'll finish my physics studies sometime in 1996 and I'm looking for a one-year job as a programmer (or maybe a scientist?) outside of Italy. Let me know if you have anything to offer.
  13. ╫  If you can't afford any of the above an e-mail, a postcard or a letter is welcome. I speak English, French and Italian. Please forgive me if I don't answer to all of your letters - I am often overloaded with my school work.
  14.  
  15. Ñ General info
  16. ╫  CalConvert is a small shareware utility that does integer arithmetic calculations and converts integer values to different bases (decimal, hexadecimal, binary, octal or any custom base between 2 and 32) or to an OSType (a sequence of four ASCII characters). The conversion may be signed or unsigned (you can always enter a signed value, it gets converted to unsigned if needed); the result may be interpreted either as a word (2 bytes) or as a long word (4 bytes). The Return and Enter keys start the conversion; Tab, shift-Tab and the four arrow keys have their usual meaning.
  17.  
  18. Ñ Configuration
  19. ╫  Choosing the "Fields" item from the "Options" menu brings up a configuration dialog that can be used to fully customize CalConvert. CalConvert can show up to 8 fields; each field contains either a mathematical expression, a sequence of 1 to 4 characters (OSType) or an integer number in any base from 2 to 32.
  20.  
  21. Ñ The arithmetic calculator
  22. ╫  You may enter mathematical or logical expressions in fields labeled "Math" (things like "(12*(128-$20))<<2+2^8"); the result is shown in all the other fields of the window when you press Return. If the expression can't be parsed correctly, you hear a beep and all other fields change to zero. The next paragraphs explain the syntax and operators you may use in your mathematical expressions.
  23.  
  24. Ñ Syntax notes for the math field
  25. ╫  xxx (x=0-9) is a number
  26. ╫  $xxx (x=0-9,A-F) is an hexadecimal number
  27. ╫  -xxx, -$xxx, $-xxx are negative numbers
  28. ╫  '(' and ')' can be used as usual, nesting allowed
  29. ╫  spaces are allowed between numbers and operators
  30. ╫  no spaces are allowed inside numbers or operators
  31. ╫  all numbers are interpreted as 32-bit signed integers
  32.  
  33. Ñ Order of operators
  34. ╫  Operators in the upper lines are calculated first.
  35. ╫  Operators in the same line are calculated sequentially.
  36.     
  37.    ^   **
  38.    *   /   :   %   <<  >>
  39.    &   |   \   AND OR  XOR
  40.    +   -
  41.    =   ==  !=  <>  <   >   <=  >=
  42.  
  43. Ñ Arithmetic operators
  44.  
  45.   +     add
  46.   -     subtract
  47.   *     multiply
  48.   /     divide
  49.   :     divide
  50.   %     remainder
  51.   ^     power
  52.   **    power
  53.  
  54. Ñ Logical operators (return 1 if true, 0 if false)
  55.  
  56.   =     equal to
  57.   ==    equal to
  58.   !=    not equal to
  59.   <>    not equal to
  60.   <     less than
  61.   >     greater than
  62.   <=    less or equal
  63.   >=    greater or equal
  64.  
  65. Ñ Bitwise operators
  66.  
  67.   <<    bit shift left
  68.   >>    bit shift right
  69.   &     bit and
  70.   AND   bit and
  71.   and   bit and
  72.   |     bit or
  73.   OR    bit or
  74.   or    bit or
  75.   \     exclusive or
  76.   XOR   exclusive or
  77.   xor   exclusive or
  78.  
  79. Ñ Version history
  80. ╫  1.2 - Recompiled as a fat binary, runs native on Power Macs
  81. ╫  1.1 - Removed System 7 dependance and custom window definition
  82. ╫  1.06 - Added online help, changed menu keys to follow Apple guidelines
  83. ╫  1.05 - Fixed incoherent behavior of the "Fields" dialog
  84. ╫  1.04 - Changed name to CalConvert
  85. ╫  1.03 - First shareware version with arithmetic parser
  86. ╫  1.02 - First public release as QuickConvert
  87. ╫  1.01 - Menus added, still looks like a quick hack
  88. ╫  1.0 - Written for my personal use only, very poor interface
  89.  
  90. Ñ Distribution
  91. ╫  CalConvert is ⌐1994 Alessandro Levi Montalcini. It can be freely distributed as long as it is not modified and there╒s no charge for it, but it may not be included in any commercial package without my consent. 
  92. ╫  All online services and bulletin boards may make it available to their users at no charge other than the normal connection fees.
  93. ╫  All non-profit user groups may distribute it at no charge.
  94. ╫  All magazines may publish it on floppy disk without asking me first, as long as I get a copy of the issue containing my software.
  95. ╫  All CD-ROM shareware collections and CD-ROM magazines may include it without my prior consent, as long as I get either a copy of the CD-ROM or an offer to buy the CD-ROM at a discounted price.
  96. ╫  All redistribution companies such as Educorp may distribute it, as long as I get a copy of each media containing my software and a catalog of the company╒s offerings (where applicable).
  97.  
  98. Ñ Disclaimer
  99. ╫  CalConvert shouldn╒t cause any damage, but you╒re using it at your own risk. As an independent software developer, I can make no warranties whatsoever on it.
  100.  
  101. Ñ Have fun!
  102. ╫  And don't forget to $$$ send your contribution $$$ so that more cool utilities will see the light in the near future, at the low-low-low costs of shareware.
  103.